package com.greenold.payment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.greenold.payment.mapper.PaymentMapper;
import com.greenold.payment.domain.Payment;
import com.greenold.payment.service.IPaymentService;

/**
 * 支付Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-15
 */
@Service
public class PaymentServiceImpl implements IPaymentService 
{
    @Autowired
    private PaymentMapper paymentMapper;

    /**
     * 查询支付
     * 
     * @param id 支付主键
     * @return 支付
     */
    @Override
    public Payment selectPaymentById(String id)
    {
        return paymentMapper.selectPaymentById(id);
    }

    /**
     * 查询支付列表
     * 
     * @param payment 支付
     * @return 支付
     */
    @Override
    public List<Payment> selectPaymentList(Payment payment)
    {
        return paymentMapper.selectPaymentList(payment);
    }

    /**
     * 新增支付
     * 
     * @param payment 支付
     * @return 结果
     */
    @Override
    public int insertPayment(Payment payment)
    {
        return paymentMapper.insertPayment(payment);
    }

    /**
     * 修改支付
     * 
     * @param payment 支付
     * @return 结果
     */
    @Override
    public int updatePayment(Payment payment)
    {
        return paymentMapper.updatePayment(payment);
    }

    /**
     * 批量删除支付
     * 
     * @param ids 需要删除的支付主键
     * @return 结果
     */
    @Override
    public int deletePaymentByIds(String[] ids)
    {
        return paymentMapper.deletePaymentByIds(ids);
    }

    /**
     * 删除支付信息
     * 
     * @param id 支付主键
     * @return 结果
     */
    @Override
    public int deletePaymentById(String id)
    {
        return paymentMapper.deletePaymentById(id);
    }
}
